Hors d'Oeuvres:
Two useful Object Utilities: Copy and Show Properties


// Copy an Object's Properties
function propCopy(anObject)
{
    for (var prop in anObject)
        this[prop] = anObject[prop]
    return this
}

// Show an Object's Properties
function showProps(anObject)
{
    for (var prop in anObject)
        document.write(prop+": <b>"+anObject[prop]+"</b><br>")
}
Copyright ©1998 by Charles River Media, All Rights Reserved